package com.spic.business.accident.feedback.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 经验反馈行动明细对象 accident_experecnce_back_action
 *
 * @author spic
 * @date 2021-12-20
 */
public class AccidentExperecnceBackAction extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 经验反馈表id
     */
    @Excel(name = "经验反馈表id")
    private Long accidentExperenceBackId;

    /**
     * 行动项
     */
    @Excel(name = "行动项")
    private String actionItem;

    /**
     * 责任人
     */
    @Excel(name = "责任人")
    private String person;

    /**
     * 完成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date finishTime;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setAccidentExperenceBackId(Long accidentExperenceBackId) {
        this.accidentExperenceBackId = accidentExperenceBackId;
    }

    public Long getAccidentExperenceBackId() {
        return accidentExperenceBackId;
    }

    public void setActionItem(String actionItem) {
        this.actionItem = actionItem;
    }

    public String getActionItem() {
        return actionItem;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public String getPerson() {
        return person;
    }

    public void setFinishTime(Date finishTime) {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() {
        return finishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("accidentExperenceBackId", getAccidentExperenceBackId())
                .append("actionItem", getActionItem())
                .append("person", getPerson())
                .append("finishTime", getFinishTime())
                .toString();
    }
}
